exports.install = function (Vue, options) {
    Vue.prototype.msgTip = function ({title, content,type,onOk,onCancel}) {
//type:'danger'
        this.$confirm({
            title: title,
            content: content,
            okText: '确定',
            okType: type,
            cancelText: '取消',
            onOk() {
                onOk();
            },
            onCancel() {
                onCancel();
            },
          });
      return false;
    };

    Vue.prototype.checkStatus = function (code) {
      if(code==13){
        let routeUrl = this.$router.resolve({
          path: '/UserLogRegi',
        });
        window.open(routeUrl.href, '_self');
        return;
      }
    }
};
